<?
$page_title="BKITC Program Invitations - List";
$mindex=3;
$profile_menu=1;
?>
<?include("includes/header.php") ?>

<?
$memberId=getMemberId();
$query="select * from bkitc_program_members PM JOIN bkitc_programs P ON P.prg_id=PM.program_id  where P.rec_status=1 and  member_id=".$memberId;

$req_info=qry_data($query);
?>
<div class="break"></div>

<?
$memberId=getMemberId();
if($memberId==0) kickOut();
$member=getMemberInfo($memberId);

?>

<table   class="table_panel" width="100%"  cellspacing="0" cellpadding="4" >
	<tr  align="left">
	<th width="5">S.No</th>
	<th style="width:120px">Title</th>
	
	<th>Prg.Date</th>
	<th>Invited Date</th>
	<th > Status </th>
	<th > Brochure </th>
	<th>View</th>
	</tr>
	<? foreach($req_info as $i=>$req) {?>

	<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?> style="height:50px">
	<td><?=$i+1;?></td>
	
	<td ><?=$req["prg_title"];?></td>
	<td><?=$req["prg_date"];?></td>
	<td><?=$req["invited_date"];?></td>
	
	<td><?=$prg_status[$req["acc_status"]]?></td>
	<td>
	
	<?
	if($req["prg_brochure"]!=""){
	$prg_id=$req["prg_id"];
	$linkBrochure=" <a target='_blank' href='data/prg_brochures/".$prg_id."/".$req["prg_brochure"]."'>Download</a>";

	}
	
	?>
				
	<?if($req["prg_brochure"]==""){?>
	
	N/A
	<?}else{ ?>
	<?=$linkBrochure?>
	
	<?} ?>
	</td>
	<td>
	<a href="prg_inv_edit.php?prgmid=<?=$req["prg_mem_id"]?>">View</a>
	</td>
	</tr>
	
	<? } ?>
	</table>


<?include("includes/footer.php") ?>


